package org.test.aop;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.lang.Nullable;

import java.lang.reflect.Method;

/**
 * 前置增强类
 * Created by Hy on 2018/7/6.
 */
public class GreetingBeforeAdvice implements MethodBeforeAdvice {
    public void before(Method method, Object[] args, @Nullable Object target) throws Throwable {
        System.out.println("Before");
    }
}
